#pragma once
#include "BurgerTimeMachine.h"

class CZoarMachine:public CBurgerTimeMachine
{
protected:
	u8 Scroll2;
	u8 ScrollRAM[4];
public:
	CZoarMachine();
	~CZoarMachine();
	int Init();
	void Reset();
	void Poll();
	void SaveState(CState *s);
	void LoadState(CState *s);
	void RenderScreen(u8 *dest,int pitch);
	void RenderBackground(u8 *dest,int pitch,int oor);
	static u8 OpMainCPU(void *user,u32 addr);
	static u8 ReadMainCPU(void *user,u32 addr);
	static void WriteMainCPU(void *user,u32 addr,u8 data);
};
